/***********************************************
 @Name :        小谭老师
 @Time :        2025-2-22
 @Email :       tan.zhipeng@outlook.com
 @Comment :     功能窗口 智能家居
 @FileName :    widget_assist_smart_home.h
 @Version :     1.0
************************************************/


#ifndef WIDGET_FUNCC_SMART_HOME_H
#define WIDGET_FUNCC_SMART_HOME_H

#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonParseError>
#include <QCamera>
#include <QCameraViewfinder>
#include <QCameraImageCapture>
#include "button_home_Start.h"
#include "musicjsonparser.h"
#include "smarthomecontrol.h"
#include "camerawidget.h"
#include "musicplayer.h"
#include "playlistwindow.h"

namespace Ui {
class Widget_funcC_Smart_Home;
}

class Widget_funcC_Smart_Home : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget_funcC_Smart_Home(QWidget *parent = nullptr);
    ~Widget_funcC_Smart_Home();
    
    MusicPlayer *musicplayer_box;
private slots:
    void slots_button_start(bool start);
    void slots_button_send_message();
    // // 请求音乐数据的响应
    // void onMusicReplyFinished(QNetworkReply *reply);
private:
    Ui::Widget_funcC_Smart_Home *ui;
    // 摄像头
    CameraWidget *camera;

    
    
    PlayListWindow *music_list_box;
    
    QNetworkAccessManager *manager;
    
    SmartHomeControl *control_ui_1;
    SmartHomeControl *control_ui_2;
    SmartHomeControl *control_ui_3;
    SmartHomeControl *control_ui_4;
    SmartHomeControl *control_ui_5;
    SmartHomeControl *control_ui_6;
    SmartHomeControl *control_ui_7;
    SmartHomeControl *control_ui_8;
    SmartHomeControl *control_ui_9;
    SmartHomeControl *control_ui_10;
};

#endif // WIDGET_FUNCC_SMART_HOME_H
